<?php 
namespace Home\Controller;

use Think\Controller;

//公共的控制器类
class HomeController extends Controller
{

	//初始化的方法
	public function _initialize()
	{
		$category = M('category');
		$list2 = $category->where('pid=0')->select();
		$this->assign('list2',$list2);
		// $this->display(T('home@layout/index'));
	
	}
	public function index()
	{
		// $category = M('category');
		// $list2 = $category->where('pid=0')->select();
		// $this->assign('list2',$list2);
		// $this->display(T('home@layout/index'));
	}


	public function _empty()
	{
		// echo '404';
		$this->display(T('home@empty/_empty'));
	}

		

		//V($_SESSION);
		
}